/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package asa;

/**
 *
 * @author scriptoff
 */
public class ASAInstPrintChaine extends ASAInst{

    
    private String chaine;

    public ASAInstPrintChaine(String s1) {
        this.chaine = s1.substring(1, s1.length()-1);
    }
    
    
    
    @Override
    public void evalue() {
        if(chaine.equals("\\n")){
            System.out.println();
        }
        else {
            System.out.print(chaine);
        }
    }

    @Override
    public ASAExpr getExpr1() {
        return null;
    }

    @Override
    public ASAExpr getExpr2() {
        return null;
    }

    @Override
    public String getLabelExplorateur() {
        return "PRINT_CHAINE";
    }
    
}
